package com.shawn.dubbo.api;

import com.shawn.model.dto.Answer;
import com.shawn.model.entity.Questionnaire;
import com.shawn.model.entity.SoulQuestion;
import com.shawn.model.entity.UserTest;
import com.shawn.model.vo.SoulQuestionVo;

import java.util.List;
import java.util.Map;

/**
 * @author shawn
 * @date 2022年 11月 12日 16:31
 */
public interface QuestionnaireApi {
    List<Questionnaire> getQuestionnaire();

    Map<Long, List<SoulQuestionVo>> getSoulQuestions(List<Long> ids);

    List<UserTest> getUserTests(Long userId);

    Long getQuestionnaireId(String questionId);

    Integer getScoreByIds(List<String> optionIds);

    void save(UserTest userTest);

    List<Long> getSimilar(String id);
}
